package impl.core;

import impl.gui.UDecideGUI;

import java.awt.BorderLayout;
import java.io.File;

import javax.swing.JFrame;

import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import org.semanticweb.owlapi.model.OWLOntologyManager;

public class Starter extends JFrame {

	public static void main(String[] args) throws OWLOntologyCreationException {
		new Starter();
	}

	public Starter() throws OWLOntologyCreationException {
		super();
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		OWLOntologyManager man = OWLManager.createOWLOntologyManager();

		OWLOntology ont;

		ont = man.loadOntologyFromOntologyDocument(new File("X:/Dropbox/Studium/HiwiJob/book_KB/book_KB_7k_Books_17k_Individuals.owl"));

		new UDecideManager(ont, man, man.getOWLDataFactory(), null, null);

		UDecideGUI gui = UDecideManager.getInstance().getGUI();

		this.getContentPane().setLayout(new BorderLayout());

		this.getContentPane().add(gui);

		this.pack();
		this.setVisible(true);
	}

}
